<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<th:block th:replace="common/head :: head(text='提醒管理')"/>
<link rel="stylesheet" type="text/css" th:href="@{/css/admin/main.css}"/>
<body>
<div class="container">
    <th:block th:replace="common/sidebar :: sidebar(flag='remind')"/>
    <div class="main-content">
        <div id="reminders">
            <h2>提醒管理</h2>
            <a class="operate-add" th:href="@{/addRemind/{functionName}/{id}(functionName='add', id=0)}">新增</a>
            <table>
                <thead>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>提醒人</th>
                    <th>执行</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="remindInfo:${remindInfoVoList}">
                    <td th:text="${remindInfoStat.count}"></td>
                    <td th:text="${remindInfo.title}"></td>
                    <td th:text="${remindInfo.toUser}"></td>
                    <td>
                        <div th:text="${remindInfo.start} == '1' ? '是' : '否'" th:style="${remindInfo.start} == '1' ? 'background-color: #4CAF50;' : 'background-color: #e06669;'"></div>
                    </td>
                    <td>
                        <a class="operate-see" th:href="@{/addRemind/{functionName}/{id}(functionName='see', id=${remindInfo.tableId})}">查看</a>
                        <a class="operate-edit" th:href="@{/addRemind/{functionName}/{id}(functionName='edit', id=${remindInfo.tableId})}">修改</a>
                        <a class="operate-del" th:href="@{/remind/deleteRemindInfo/{id}(id=${remindInfo.tableId})}"/>删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>
